/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.si.ufc.teste;

import br.ufc.si.config.HibernateUtil;
import br.ufc.si.sistema.to.RelatorioTO;
import org.hibernate.Session;
import org.hibernate.Transaction;
/**
 *
 * @author Am1b10s
 */
public class TesteRelatorioTable {

    public static void main(String[] args) {
		RelatorioTO relatorio = new RelatorioTO();
		Session session = HibernateUtil.getSession();
		Transaction txt = session.beginTransaction();
                relatorio.setId(0);
                relatorio.setId_bolsa(7);
                relatorio.setId_bolsista(1);
                relatorio.setData("09-08-2011");
                relatorio.setTexto("aisuhdaiushdausdhaiosuhd");
                relatorio.setDescricao("teste1");
                System.out.println("teste");
		session.save(relatorio);
		txt.commit();
		

	}
}

